<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%rpt_app_location_hour}}".
 *
 * @property integer $id
 * @property integer $adspaceid
 * @property string $cn
 * @property string $cn_city
 * @property integer $reqs
 * @property integer $shows
 * @property integer $hour
 * @property integer $logdate_id
 * @property string $createtime
 */
class RptAppLocationHour extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%rpt_app_location_hour}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['adspaceid', 'reqs', 'shows', 'hour', 'logdate_id'], 'integer'],
            [['hour', 'logdate_id'], 'required'],
            [['createtime'], 'safe'],
            [['cn'], 'string', 'max' => 60],
            [['cn_city'], 'string', 'max' => 40]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'adspaceid' => 'Adspaceid',
            'cn' => 'Cn',
            'cn_city' => 'Cn City',
            'reqs' => 'Reqs',
            'shows' => 'Shows',
            'hour' => 'Hour',
            'logdate_id' => 'Logdate ID',
            'createtime' => 'Createtime',
        ];
    }
}
